package com.bosssoft.setp.model.system;


import com.bosssoft.setp.handler.SlideShowDataProxy;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.EditType;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.annotation.sub_field.sub_edit.AttachmentType;
import xyz.erupt.annotation.sub_field.sub_edit.BoolType;
import xyz.erupt.annotation.sub_field.sub_edit.Search;
import xyz.erupt.jpa.model.BaseModel;

import javax.persistence.Entity;
import javax.persistence.Table;

@Erupt(name = "公告",dataProxy = SlideShowDataProxy.class)
@Table(name = "setp_lunb0tu")
@Entity
public class SlideShow extends BaseModel {

    @EruptField(
            views = @View(title = "状态"),
            edit = @Edit(title = "状态", notNull = true, boolType = @BoolType(trueText = "开启", falseText = "关闭"), search = @Search)

    )
    private Boolean status;
    @EruptField(
            views = @View(title = "图片1"),
            edit = @Edit(title = "图片1", notNull = true, type = EditType.ATTACHMENT,
                    attachmentType = @AttachmentType(type = AttachmentType.Type.IMAGE, maxLimit = 1))
    )
    private String image1;
    @EruptField(
            views = @View(title = "图片2"),
            edit = @Edit(title = "图片2", notNull = false, type = EditType.ATTACHMENT,
                    attachmentType = @AttachmentType(type = AttachmentType.Type.IMAGE, maxLimit = 1))
    )
    private String image2;
    @EruptField(
            views = @View(title = "图片3"),
            edit = @Edit(title = "图片3", notNull = false, type = EditType.ATTACHMENT,
                    attachmentType = @AttachmentType(type = AttachmentType.Type.IMAGE, maxLimit = 1))
    )
    private String image3;
    @EruptField(
            views = @View(title = "图片4"),
            edit = @Edit(title = "图片4", notNull = false, type = EditType.ATTACHMENT,
                    attachmentType = @AttachmentType(type = AttachmentType.Type.IMAGE, maxLimit = 1))
    )
    private String image4;
    @EruptField(
            views = @View(title = "图片5"),
            edit = @Edit(title = "图片5", notNull = false, type = EditType.ATTACHMENT,
                    attachmentType = @AttachmentType(type = AttachmentType.Type.IMAGE, maxLimit = 1))
    )
    private String image5;
    @EruptField(
            views = @View(title = "图片6"),
            edit = @Edit(title = "图片6", notNull = false, type = EditType.ATTACHMENT,
                    attachmentType = @AttachmentType(type = AttachmentType.Type.IMAGE, maxLimit = 1))
    )
    private String image6;
    @EruptField(
            views = @View(title = "图片7"),
            edit = @Edit(title = "图片7", notNull = false, type = EditType.ATTACHMENT,
                    attachmentType = @AttachmentType(type = AttachmentType.Type.IMAGE, maxLimit = 1))
    )
    private String image7;
    @EruptField(
            views = @View(title = "图片8"),
            edit = @Edit(title = "图片8", notNull = false, type = EditType.ATTACHMENT,
                    attachmentType = @AttachmentType(type = AttachmentType.Type.IMAGE, maxLimit = 1))
    )
    private String image8;
    @EruptField(
            views = @View(title = "间隔时间(秒)"),
            edit = @Edit(title = "间隔时间（秒)", notNull = true)
    )
    private int spacing_time;
    public int getSpacing_time()
    {
        return spacing_time;
    }
}
